package com.ctcd.security.pojo;



import com.fasterxml.jackson.annotation.JsonInclude;




@JsonInclude(JsonInclude.Include.NON_NULL)
public class OssResult<T> {
    /**
     * 错误信息  0是数字，不能是字符串
     */
    private Integer erron;

    /**
     * 查询到的结果数据，
     */
    private T data;

    //错误返回
    private String message;


    public OssResult(Integer erron, T data) {
        this.erron = erron;
        this.data = data;
    }

    public OssResult(Integer erron, String message) {
        this.erron = erron;
        this.message = message;
    }

    public Integer getErron() {
        return erron;
    }

    public void setErron(Integer erron) {
        this.erron = erron;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}